package com.echo.code.spring.springbootdemo.web;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * Description
 *
 * @author baiyp
 * @version 1.0.0
 * @date 2019/04/28
 */
@Configuration
@PropertySource(value = "classpath:web.properties")
@Setter
@Getter
public class WebConfig {

  @Value("${web.ip}")
  private String ip;
  @Value("${web.port}")
  private String port;
}
